package net.zwet.clanworks.connectors.eve.api.utils;

public class Convert {
	public static String intToString ( int value ) {
		String stringValue = Integer.toString(value);
		
		return stringValue;
	}
	
	public static int stringToInt ( String value ) {
		int intValue = 0;
		
		if ( ! "".equals(value) ) {
			intValue = Integer.valueOf( value ).intValue();
		}
		
		return intValue;
	}

	public static boolean strintToBoolean( String value ) {
		boolean boolValue = false;
		
		if ( "TRUE".equals( value.toUpperCase() ) ) {
			boolValue = true;
		} else if ("FALSE".equals(value.toUpperCase() ) ) {
			boolValue = false;
		}
		
		return boolValue;
	}
}
